package com.duobaoyu.dby.supply.common.biz.compare;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author chenms
 * @date 2023/10/23 10:29 AM
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CompareResult implements Serializable {

    private List<Diff> diffList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class Diff {

        /**
         * 字段
         */
        private String fieldKey;

        /**
         * 旧值
         */
        private Object oldValue;

        /**
         * 字段名称
         */
        private String fieldName;

        /**
         * 新值
         */
        private Object newValue;

    }
}
